package com.witmed.entity;

import java.util.List;

/**
 * 医生发表文章实体模型
 * @author 侯仁杰
 *
 */
public class Article {

	private Integer articleId;//文章编号
	private String articleTitle;//文章标题
	private String articleContent;//文章内容
	private String articleTime;//发布时间
	private Doctor doctor;
	private List<Discuss> list; //评论集合
	public Article(Integer articleId, String articleTitle, String articleContent, String articleTime, Doctor doctor,
			List<Discuss> list) {
		super();
		this.articleId = articleId;
		this.articleTitle = articleTitle;
		this.articleContent = articleContent;
		this.articleTime = articleTime;
		this.doctor = doctor;
		this.list = list;
	}
	public List<Discuss> getList() {
		return list;
	}
	public void setList(List<Discuss> list) {
		this.list = list;
	}
	public Integer getArticleId() {
		return articleId;
	}
	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}
	public String getArticleTitle() {
		return articleTitle;
	}
	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}
	public String getArticleContent() {
		return articleContent;
	}
	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}
	public String getArticleTime() {
		return articleTime;
	}
	public void setArticleTime(String articleTime) {
		this.articleTime = articleTime;
	}
	public Doctor getDoctor() {
		return doctor;
	}
	public void setDoctor(Doctor doctor) {
		this.doctor = doctor;
	}
	public Article(Integer articleId, String articleTitle, String articleContent, String articleTime, Doctor doctor) {
		super();
		this.articleId = articleId;
		this.articleTitle = articleTitle;
		this.articleContent = articleContent;
		this.articleTime = articleTime;
		this.doctor = doctor;
	}
	public Article() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Article [articleId=" + articleId + ", articleTitle=" + articleTitle + ", articleContent="
				+ articleContent + ", articleTime=" + articleTime + ", doctor=" + doctor + ", list=" + list + "]";
	}
	
	
}
